const toggle = document.getElementById('toggle')
const nav = document.getElementById('nav')

// 2.2 点击 "x" 按钮后, 对 nav 导航栏进行类名的来回切换效果 (toggle)
toggle.addEventListener('click', () => nav.classList.toggle('active'))
